package com.zq.ht.common.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

/**
 * Created by admin on 2016/6/26.
 */
public class CommonUtil {
    public static String getPicName(){
        SimpleDateFormat df = new SimpleDateFormat("yyyyMMddHHmmss");
        String newFileName = df.format(new Date()) + "_" + new Random().nextInt(1000) + ".jpg";
        return newFileName;
    }
}
